export const REQUIRE_VALIDATOR_NAME = {
  required: true,
  message: '哥,填一下吧',
  trigger: ['change', 'blur'],
};

export const EMAIL_VALIDATOR = {
  required: true,
  pattern: /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
  message: '邮箱格式不正确',
  trigger: ['change', 'blur'],
};

export const URL_VALIDATOR = {
  pattern:
    /(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/,
  message: '链接格式不正确，注意以http或https开头',
  trigger: ['change', 'blur'],
};
